-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update typescript setup #296
Conversation
|
Codecov Report
@@ Coverage Diff @@
## main #296 +/- ##
=======================================
Coverage 94.60% 94.60%
=======================================
Files 30 30
Lines 426 426
Branches 103 103
=======================================
Hits 403 403
Misses 23 23
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
Does |
Yes, I believe it should: rollup/plugins#61 I'm not sure if there might be some additional configuration needed for that to happen or if it's already happening with this PR |
I've pushed a change to make it so that types are generated with this PR |
Co-authored-by: Jonas Kruckenberg <[email protected]>
Co-authored-by: Jonas Kruckenberg <[email protected]>
Co-authored-by: Jonas Kruckenberg <[email protected]>
this is strange. I can't reproduce any failure locally eventhough the CI keeps failing |
We love jest 🙃 |
Maybe I'll finally have a reason to try out the new https://vitest.dev/ |
I ended up implementing this myself, to fix that annoying jest issue, but thanks for your PR anyway! |
that's great! thank you so much! |
Cleanup
None
PR?)
No
rollup-plugin-typescript2
has tons of required peerDependencies that aren't installed. Switch to@rollup/plugin-typescript
instead since it has fewer required peerDependencies and then install them (i.e.tslib
).rollup-plugin-typescript2
was originally better than@rollup/plugin-typescript
, but the latter has improved quite a bit and now is the better library and far better tested (rollup-plugin-typescript2
has no tests whatsoever)This is necessary if we'd want to try out pnpm (#292) because pnpm validates that you have the required peedDependencies installed
The
yarn.lock
file is smaller with this change because@rollup/plugin-typescript
pulls in fewer dependencies thanrollup-plugin-typescript2
does, which is nice as well